<?php
define('IN_DC', TRUE);
require dirname(__FILE__).'/inc/common.inc.php';



$ds = $db->select("SELECT * FROM `dc_content` c,`dc_c_discount` d WHERE c.contentid = d.contentid");

foreach($ds AS $r){
    unset($r[searchid]);
    unset($r[template]);
    $db->update('dc_discount',$r);
}
echo 'OK';
?>
